package com.cc.controller;


import com.cc.entity.AutoUser;
import com.cc.service.impl.AutoUserServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cc
 * @since 2021-12-14
 */
@RestController
@RequestMapping("/auto-user")
@Api(tags = "测试成功与否")
public class AutoUserController {
    @Autowired
    private AutoUserServiceImpl autoUserService;

    @GetMapping("/findOne")
    @ApiOperation("查询单个用户")
    private AutoUser findOne (@ApiParam("id") Integer id){
        AutoUser byId = autoUserService.getById(id);
        return byId;
    }
}

